<template>
  <div class="widget">
    <p class="widget-title">{{ content.display_name }}1</p>
    <el-select v-model="content.defaultValue" @change="sendValue" class="val" size="mini">
      <el-option
        v-for="(e, i) in content.options"
        :key="i"
        :label="e.title"
        :value="e.value" />
    </el-select>
  </div>
</template>
<script>

export default {
  props: { },
  data() {
    return {
      content: {}
    };
  },
  methods: {
    sendValue () {
      this.$EventBus.$emit('defaultValue', this.content)
    }
  },
  mounted () {
    
  }
};
</script>

<style lang="less" scoped>
.val{
  width: 180px;
}
</style>
